<?php

namespace app\home\controller;



use app\api\model\Category;
use app\BaseController;
use think\App;
use think\Controller;
use think\facade\View;
use think\Request;

class Base extends BaseController
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $category = Category::getCategory()->toArray();
        $category = get_tree_list($category);
        View::assign('category', $category);
    }

}